package com.company.design.action.template;

/**
 * @author yingfing
 * @create 2020--09--24 8:40
 * @describe
 */
public abstract class BeanMilk {
    // 主方法
    public final void prepareRecipe() {
        selectMaterial();
        addCondiments();
        sock();
        beat();
    }

    public void selectMaterial() {
        System.out.println("第一步、选择好了新鲜的黄豆 ! ");
    }

    abstract void addCondiments();

    public void sock() {
        System.out.println("第三步、黄豆和配料开始浸泡,大概需要5 个小时 ! ");
    }

    public void beat() {
        System.out.println("第四部、黄豆和配料放到豆浆机打碎 ! ");
    }
}
